package cz.zcu.fav.rat.dataaccess.service;

import java.util.List;

import org.springframework.security.access.annotation.Secured;
import org.springframework.transaction.annotation.Transactional;

import cz.zcu.fav.rat.beans.ObjectClass;
import cz.zcu.fav.rat.dataaccess.dao.GenericDAO;

public interface ObjectClassService extends
		GenericDataAccessService<ObjectClass, GenericDAO<ObjectClass, Integer>>
{
	List<ObjectClass> getObjectClassByName(String name);	
	
	@Override
	@Transactional(readOnly = false)
    @Secured("ROLE_ADMIN")
	Integer create(ObjectClass newInstance);
	
	@Override
	@Transactional(readOnly = false)
    @Secured("ROLE_ADMIN")
	void update(ObjectClass transientObject);
	
	@Override
	@Transactional(readOnly = false)
    @Secured("ROLE_ADMIN")
	void delete(ObjectClass persistentObject);
}
